home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
which.z
/
which
Wrap
Text File
|
1998-10-20
|
2KB
|
67 lines
WWWWHHHHIIIICCCCHHHH((((1111)))) WWWWHHHHIIIICCCCHHHH((((1111))))
NNNNAAAAMMMMEEEE
which - locate a program file including aliases and path (_c_s_h only)
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
wwwwhhhhiiiicccchhhh [----aaaa] [----ffff] [_n_a_m_e...]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_W_h_i_c_h takes a list of names and looks for the files which would be
executed had these names been given as commands. Each argument is
expanded if it is aliased, and searched for along the user's path.
Aliases are taken from the user's .cshrc file. The current value of path
is used. The ----aaaa option reports all instances rather than just the first
one. With the ----ffff (fast) option, _w_h_i_c_h ignores the .cshrc file.
FFFFIIIILLLLEEEESSSS
~/.cshrc source of aliases
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
A diagnostic is given for names that are aliased to one or more words, or
if an executable file with the argument name was not found in the path.
BBBBUUUUGGGGSSSS
Must be executed by a csh, since only csh's know about aliases. Only
aliases and paths from ~/.cshrc are used; importing from the current
environment, .login, or /etc/cshrc isn't attempted.
PPPPaaaaggggeeee 1111